package com.st.po;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Tag(name="测试验证接口传参实体",description = "123")
public class ValidationDelFooPo {

    @NotNull(message = "用户编号不能为空")
    @Min(value=1,message = "最小不能低于1")
    @Max(value=10,message = "最大不能大于10")
    @Schema(name = "id",description = "用户编号")
    private Integer id;
}
